package ai;



import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;

public class Screen
{
	static BufferedImage screenShotImage()
	{
		try
		{
			Rectangle captureSize = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
			Robot robot = new Robot();
			BufferedImage bufferedImage = robot.createScreenCapture(captureSize);
			return bufferedImage;
		}catch(Exception e)
		{
			e.printStackTrace();
		}
		return null;
	}
}
